<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/11
 * Time: 15:14
 */

namespace app\common\model;


class DynamicComment extends BaseModel
{
    protected $updateTime = false;

    public function user(){
        return $this->belongsTo('User','user_id','id')->field('id,nickname,avatar,education');
    }

    public function reply(){
        return $this->hasMany('DynamicCommentReply','c_id','id')->order('created_at','asc');
    }
}